package com.lsa.letcode.the6.zigzag;


import org.junit.Assert;
import org.junit.Test;

public class ZigzagTest {
	@Test
	public void test() {
		Solution s = new Solution();
		Assert.assertEquals("PAHNAPLSIIGYIR", s.convert("PAYPALISHIRING", 3));
//		print(s.zigzag("PAYPALISHIRING", 4));
	}
	
	private static void print(Character[][] z) {
		for (int i = 0; i < z.length; i++) {
			for (int j = 0; j < z[i].length; j++) {
				System.out.print(' ');System.out.print(z[i][j] == null? ' ' : z[i][j]);
			}
			System.out.println();
		}
	}
}